<template>
	<view class="no">
		<view class="no-center" :style="{top:noTop}">
			<image :style="{width:width}" :src="Url+url" mode="widthFix"></image>
			<text class="no-center-font">{{nofont}}</text>
			<view class="no-center-btn" v-if="noStatus" @tap="$emit('navtive')">{{noBtn}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			url:{
				type:String,
				default:'add_images/sc-zanwu.png'
			},
			noBtn:{
				type:String,
				default:'去逛逛'
			},
			noStatus:{
				type:Boolean,
				default:false
			},
			width:{
				type:String,
				default:'42%'
			},
			nofont:{
				type:String,
				default:"暂无数据"
			},
			noTop:{type:String,
			default:'25%'
			}
		},
		data() {
			return {
				Url:this.Imgurl
			};
		}
	}
</script>

<style lang="less">
	.no{
		&-center{
			width: 100%;
			position:absolute;
			left: 0;
			right: 0;
			margin: 0 auto;
			image{
				height: 287upx;
				display: block;
				margin: 0 auto;
			}
			&-font{
				font-size: 24upx;
				color: #999999;
				display: block;
				text-align: center;
				margin: 40upx 0;
			}
			&-btn{
				width: 260upx;
				text-align: center;
				height: 68upx;
				line-height: 68upx;
				font-size: 28upx;
				color: #FF2842;
				border-radius: 34upx;
				border: 2upx solid #FF2842;
				margin: 0 auto;
			}
		}
	}
</style>
